/**
 * losenote.com Inc.
 * Copyright (c) 2013-2013 All Rights Reserved.
 */
package com.losenote.model;

import java.util.Date;

import com.losenote.enums.DataStateEnum;

/**
 * 分类条目
 * 
 * @author danjingyu
 * @version $Id: CategoryItem.java, v 0.1 2013-8-28 下午4:16:10 danjingyu Exp $
 */
public class CategoryItem extends ToString {

    /**默认序列*/
    private static final long serialVersionUID = 1L;

    /**id*/
    private int               id;

    /**名称*/
    private String            name;

    /**描述*/
    private String            description;

    /**该分类的父分类*/
    private Integer           fatherId;

    /**关联文件，主要是图片*/
    private AttachFile        attachImg;

    /**数据状态*/
    private DataStateEnum     state;

    /**创建时间*/
    private Date              gmtCreate;

    /**修改时间*/
    private Date              gmtModified;

    /**创建人*/
    private String            creator;

    /**最后修改人*/
    private String            lastModifier;

    public int getId() {
        return id;
    }

    public void categoryTemp(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getFatherId() {
        return fatherId;
    }

    public void setFatherId(Integer fatherId) {
        this.fatherId = fatherId;
    }

    public DataStateEnum getState() {
        return state;
    }

    public void setState(DataStateEnum state) {
        this.state = state;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getLastModifier() {
        return lastModifier;
    }

    public void setLastModifier(String lastModifier) {
        this.lastModifier = lastModifier;
    }

    public AttachFile getAttachImg() {
        return attachImg;
    }

    public void setAttachImg(AttachFile attachImg) {
        this.attachImg = attachImg;
    }

    public void setId(int id) {
        this.id = id;
    }

}
